#include <signal.h>
#include <stdio.h>
#include <unistd.h>
void alarm_handler(int alarm) {
   printf("sleep is over\n");
}
int mysleep(int seconds) {
    signal(SIGALRM,alarm_handler);   
      
    alarm(seconds);
    pause();
    

}
int main()
{
	printf("before pause\n");
   mysleep(3);
   printf("after pause\n");  
  return 0;
}
